package top.wangjingxin.controller;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.wangjingxin.util.UuidUtil;


@RequestMapping(value = "/api/v1/test")
@RestController
public class TestController {
    @GetMapping("uuid")
    public String uuid() {
        return UuidUtil.Uuid();
    }

    @DeleteMapping("testPut")
    public String uuidPut(String id) {
        return UuidUtil.Uuid()+id;
    }
}
